package net.rlenar.microfn;

import java.util.Iterator;
import java.util.NoSuchElementException;

public class EmptyIterable<T> implements Iterable<T>, Iterator<T> {
	public static final Iterable<? extends Object> EMPTY_ITERABLE = new EmptyIterable<Object>();
	public boolean hasNext() {
		return false;
	}

	public T next() {
		throw new NoSuchElementException();
	}

	public void remove() {
		throw new UnsupportedOperationException();
	}

	public Iterator<T> iterator() {
		return this;
	}

}
